// goods 商品管理模块路由
import Commodity from '@/pages/goods'

import CommodityClassify from '@/pages/goods/goods-category'
import CommodityProperty from '@/pages/goods/goods-attr'
import CommodityList from '@/pages/goods/goods-list'

const CommodityRoutes = {
  name: 'goods',
  path: '/goods',
  component: Commodity,
  meta: { //添加一个路由元信息，标记
    requiresAuth: true
  },
  children: [
    {
      path: 'category',
      component: CommodityClassify
    },
    {
      path: 'attr',
      component: CommodityProperty
    },
    {
      path: 'list',
      component: CommodityList
    }
  ]
}

export default CommodityRoutes
